package com.zkk.pojo;

import java.util.List;

public class PageUtil<T> {
    private int currentPage;
    private int pageSize;
    private int firstSize;
    private int lastSize;
    private int count;
    private List<T> dataPage;
    private int sumPage;

    public PageUtil() {
    }

    public PageUtil(int currentPage, int pageSize, int firstSize, int lastSize, int count, List<T> dataPage, int sumPage) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.firstSize = firstSize;
        this.lastSize = lastSize;
        this.count = count;
        this.dataPage = dataPage;
        this.sumPage = sumPage;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getFirstSize() {
        return firstSize;
    }

    public void setFirstSize(int firstSize) {
        this.firstSize = firstSize;
    }

    public int getLastSize() {
        return lastSize;
    }

    public void setLastSize(int lastSize) {
        this.lastSize = lastSize;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getDataPage() {
        return dataPage;
    }

    public void setDataPage(List<T> dataPage) {
        this.dataPage = dataPage;
    }

    public int getSumPage() {
        return sumPage;
    }

    public void setSumPage(int sumPage) {
        this.sumPage = sumPage;
    }

    @Override
    public String toString() {
        return "PageUtil{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", firstSize=" + firstSize +
                ", lastSize=" + lastSize +
                ", count=" + count +
                ", dataPage=" + dataPage +
                ", sumPage=" + sumPage +
                '}';
    }
}
